﻿using CatUtils.Utils.Currency.IoUtils;
using RabbitDownload.WebSite.Local.LstHelper;
using System;
using System.Windows.Forms;

namespace RabbitDownload.MangerTool
{
    public partial class DownloadControl : UserControl
    {
        public DownloadControl()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            new DownloadControlTool().DownListFile(FileHelper.SelectFile());
        }

        private void button4_Click(object sender, EventArgs e)
        {
            new DownloadControlTool().SkipListFile(FileHelper.SelectFile(), textboxOnlyCount1.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            new DownloadControlTool().SkipListFloder(FloderHelper.SelectFloder(), textboxOnlyCount1.Text);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            new DownloadControlTool().DownloadFloder(FloderHelper.SelectFloder());
        }

        private void button5_Click(object sender, EventArgs e)
        {
            LstRepeat.FloderRepeat(FloderHelper.SelectFloder());
        }
    }
}